export const NEXT_STEP = 'NEXT_STEP'
export const PRE_STEP = 'PRE_STEP'
export const CREATE_KMX_DATA = 'CREATE_KMX_DATA'
export const STORE_CM_DATA = 'STORE_CM_DATA'
export const GET_KMX_NAME = 'GET_KMX_NAME'
export function nextStep (next) {
  return {
    type: NEXT_STEP,
    next
  }
}

export function preStep (pre) {
  return {
    type: PRE_STEP,
    pre
  }
}

export function createKmxData (json) {
  return {
    type: CREATE_KMX_DATA,
    json
  }
}

export function storeCmData (json) {
  return {
    type: STORE_CM_DATA,
    json
  }
}

export function getKmxName (name) {
  return {
    type: GET_KMX_NAME,
    name
  }
}
